package com.example.demo;

import org.apache.ibatis.annotations.Select;

import java.util.List;

public abstract class Student {
    @Select({
            "<script>",
            "select * from tb_student where 1=1",
            "<if test='name!=null'>",
            "and name = #{name}",
            "</if>",
            "<if test='no!=null'>",
            "and no = #{no}",
            "</if>",
            "</script>"
    })
    abstract List<Student> getStuByNameOrNo(String name, String no);
}
